package com.heima.media.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.ChannelDto;
import com.heima.media.entity.WmChannel;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IWmChannelService extends IService<WmChannel> {
    /**
     * 分页查询频道列表
     * @param dto
     * @return
     */
    ResponseResult listByPage(ChannelDto dto);

    /**
     * 添加频道
     * @param wmChannel
     * @return
     */
    ResponseResult saveChannel(WmChannel wmChannel);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult updateChannel(WmChannel wmChannel);

    /**
     * 根据id删除频道
     * @param id
     * @return
     */
    ResponseResult deleteChannel(Integer id);
}
